import request from "../../utils/request";

const BASE_URL = "maimao_info/info/history";
export default {

    /**
     * 当前用户的历史记录
     */
    historyData() {
        return request({
            url: `${BASE_URL}/all`,
            method: 'get',
        })
    },

    /**
     * 添加历史记录
     */
    addHistory(key) {
        return request({
            url: `${BASE_URL}/add`,
            method: 'post',
            data: {
                key
            }
        })
    },
    /**
     * 删除历史记录
     */
    deleteHistory(key){
        return request({
            url: `${BASE_URL}/delete`,
            method: 'post',
            data: {
                key
            }
        })
    }


}

